package com.yami.shop.vo.message.message;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UltraGroupMessageVo implements Serializable {

    @NotEmpty(message = "会话类型不能为空")
    @Schema(description = "会话类型 单聊会话是 1、群组会话是 3、系统通知是 6 ", required = true)
    private String conversationType;

    @NotEmpty(message = "操作用户 ID不能为空")
    @Schema(description = "操作用户 ID", required = true)
    private String fromUserId;

    @NotEmpty(message = "清除的目标会话 ID不能为空")
    @Schema(description = "清除的目标会话 ID", required = true)
    private String targetId;

    @Schema(description = "清除该时间戳之前的所有历史消息，精确到毫秒，为空时清除该会话的所有历史消息")
    private String msgTimestamp;
}
